package com.educate.common.exception;


import com.educate.common.api.IErrorCode;

/**
 * @author yjj
 * @Description 断言处理，用于抛出各种异常 (可用于service层)
 * @createTime 2021/09/06
 */
public class Asserts {
    public static void fail(String message) {
        throw new DefinitionException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new DefinitionException(errorCode);
    }
}